package com.xframe.domain.e3sp.basedata;

import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.*;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description: 章号
 * @ClassName: com.xframe.domain.e3sp.basedata.Chapter
 * @Author: lmx
 * @CreateTime: 2024/01/02
 **/
@Data
@Accessors(chain=true)
@XTable(value = "p_t02_chapter", label = "章号")
@XSelectItem(keyName = "chapterId",codeName = "chapterNo",textName = "nameCn")
@XSelectItem(keyName = "chapterId",codeName = "chapterNo",textName = "nameCn",language = "en")
public class Chapter extends BaseModel {
    /**
     * 章号ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "chapter_id", primaryKeyFlag = true,desc = "章号ID")
    private Long chapterId;

    /**
     * 章号
     */
    @XQueryCondition
    @XColumn(name = "chapter_no", uniqueFlag = true,desc = "章号",length = 200)
    @XGridTableRef
    private String chapterNo;


    /**
     * 中文名称
     */
    @XQueryCondition
    @XColumn(name = "name_cn",desc = "中文名称",length = 200)
    @XGridTableRef
    private String nameCn;

    /**
     * 英文名称
     */
    @XQueryCondition
    @XColumn(name = "name_en",desc = "英文名称",length = 200,nullFlag = true)
    private String nameEn;

    /**
     * 备注
     */
    @XColumn(name = "remark",desc = "备注",length = 500,nullFlag = true)
    private String remark;

}
